/**
 * .TestCouchDB
 * ${DESCRIPTION}
 * @author skitsanos, info@skitsanos.com
 * @version 1.0
 * Date: 3/10/11
 */
package
{
	import com.skitsanos.data.CouchDB;

	import flash.display.Sprite;
	import flash.system.Security;

	public class TestCouchDB extends Sprite
	{
		public function TestCouchDB()
		{
			Security.loadPolicyFile('http://192.168.2.2:5984/crossdomain.xml');

			var doc:Object = {_id: 'demo', title: 'demo', type: 'mydoc'};

			var db:CouchDB = new CouchDB('192.168.2.2');
			db.getView('pmware', 'FeatureRequests', 'showAll', function(e:*):void
			{
				trace(e);
			}, function(e:*):void
			{
				trace(e.type);
			});
		}
	}
}
